<?php
/**
 * bs多规格sku商城系统
 * ============================================================================
 * 版权所有 2024-2099 wltx666.com，并保留所有权利。
 * 网站地址: https://wltx666.com
 * ============================================================================
 * Author: 草上飞
 * Email: wltx@alipay168.cn
 * QQ: 2719875001
 * Date: 2024/12/18
 * 描述:
 */

namespace app\api\controller;

use app\result\order\OrderResult;
use think\App;

class Order extends BaseIndex
{

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new OrderResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->list($this->user_id, $this->param));
    }

    public function detail()
    {
        data_exit_json($this->objResult->get($this->user_id, $this->param));
    }

    public function create()
    {
        $this->param['token'] = $this->token;
        data_exit_json($this->objResult->create($this->user_id, $this->param));
    }

    public function delete()
    {
        data_exit_json($this->objResult->delete($this->user_id, $this->param));
    }

    public function remain_check()
    {
        data_exit_json($this->objResult->remain_check($this->user_id, $this->param));
    }

    public function cancel()
    {
        data_exit_json($this->objResult->cancel($this->user_id, $this->param));
    }

    // 确认收货
    public function confirm()
    {
        data_exit_json($this->objResult->confirm($this->user_id, $this->param));
    }

    public function data_count()
    {
        data_exit_json($this->objResult->data_count($this->user_id, $this->param));
    }

    //物流信息
    public function express()
    {
        data_exit_json($this->objResult->express($this->user_id, $this->param));
    }

    public function pay_check()
    {
        data_exit_json($this->objResult->pay_check($this->user_id, $this->param));
    }

}
